<include file="Public/head" />

<link rel="stylesheet" href="__HOME_CSS__/newdsn/css/jquery-ui.css">
<script src="__HOME_JS__/js/jquery-ui/jquery-ui.js"></script>
<script type="text/javascript" src="__HOME_JS__/js/dialog.js"></script>

<!-- <div class="ad-banner"><p style="background-image:url(images/ad.jpg);"></p></div> -->
<div id="wrapper">
  <div class="reg">
    <div class="reg-step find-pwd">
      <ul>
        <li class="i-first on step1">输入用户名/手机号码</li>
        <li class="step2">设置新密码</li>
        <li class="i-last step3">修改成功</li>
      </ul>
    </div>
    <!-- 第一步 -->
    <div class="reg-form" id="forget">
      <ul>
        <li><label class="tit">登录账号:</label><input type="text" id="username" name="username" class="txt"><span class="tips">＊请输入登陆账号以确保输入无误</span></li>
        <li><label class="tit" class="tit">手机号码:</label><input type="text" id="mobile" name="mobile" class="txt"><span class="tips">＊请输入您绑定的手机号码</span></li>
        <li style="padding-left:74px;"><input type="button" value="下一步" class="btn" onclick="checkInfo();"></li>
      </ul>
    </div>
    <!-- 第二步 -->
    <div class="reg-form" id="forget2" style="display: none">
      <ul>
        <li><label class="tit">设置密码:</label><input type="password" id="pwd" name="pwd" class="txt"><span class="tips">＊6-20个字母、数字或组合组成，区分大小写</span></li>
        <li><label class="tit">确认密码:</label><input type="password" id="ckPwd" name="ckPwd" class="txt"><span class="tips">＊请再次输入密码以确保输入无误</span></li>
        <li><label class="tit">验证码:</label><input type="text" id="code" class="txt"><span class="tips">请输入您手机接收到的验证码</span></li>
        <li style="padding-left:74px;"><input type="button" value="确定" class="btn" onclick="fotGetPassword();"></li>
      </ul>
    </div>
  </div>
</div><!--wrapper end-->

<script src="__HOME_JS__/js/forgot.js"></script>
<script>
$(function(){
	$("#btn").click(function(){
	var name=$("#username").val();
	var password=$("#password").val();
	$.post('/index.php/Login/dologin',{name:name,pwd:password},function(e){
			if(e.result==1){
				window.location.href='<?php echo U('Home/Login/agreement')?>';
			
			}else{
				alert(e.message);
			}
		},'json')
	
	})
})
</script>
<include file="Public/foot" />